package com.example.administrator.ygddriver.order.outorder;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class ToSendRequestBean {


    /**
     * success : true
     * errorCode :
     * localizedMessage : 送件列表查询成功
     * result : [{"c_headportrait":"","c_address":"天津市区","c_account":"13900004087","c_customerlatitude":"39.894073","c_distance":"","c_parcelnumber":"3","c_customerlongitude":"116.407999","c_id":"16d0997810474eed8f232c64745dc73c","c_name":"小张","c_waybillnumber":"2","c_status":"3","c_shippingstatus":"","c_driver_profits":"8"},{"c_headportrait":"","c_address":"天津市区","c_account":"13900004087","c_customerlatitude":"39.133462","c_distance":"","c_parcelnumber":"2","c_customerlongitude":"117.315575","c_id":"06e61a0dd57b4c8383af515ad9db6074","c_name":"小张","c_waybillnumber":"1","c_status":"2","c_shippingstatus":"","c_driver_profits":"8"},{"c_headportrait":"","c_address":"","c_account":"13911114087","c_customerlatitude":"38.853490","c_distance":"","c_parcelnumber":"","c_customerlongitude":"115.557124","c_id":"98dcef99b11649e897aab9c572213d96","c_name":"小王","c_waybillnumber":"2","c_status":"2","c_shippingstatus":"","c_driver_profits":"8"}]
     */

    private boolean success;
    private String errorCode;
    private String localizedMessage;
    private List<ResultBean> result;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getLocalizedMessage() {
        return localizedMessage;
    }

    public void setLocalizedMessage(String localizedMessage) {
        this.localizedMessage = localizedMessage;
    }

    public List<ResultBean> getResult() {
        return result;
    }

    public void setResult(List<ResultBean> result) {
        this.result = result;
    }

    public static class ResultBean implements Parcelable {
        /**
         * c_headportrait :
         * c_address : 天津市区
         * c_account : 13900004087
         * c_customerlatitude : 39.894073
         * c_distance :
         * c_parcelnumber : 3
         * c_customerlongitude : 116.407999
         * c_id : 16d0997810474eed8f232c64745dc73c
         * c_name : 小张
         * c_waybillnumber : 2
         * c_status : 3
         * c_shippingstatus :
         * c_driver_profits : 8
         */

        private String c_headportrait;
        private String c_address;
        private String c_account;
        private double c_customerlatitude;
        private String c_distance;
        private String c_parcelnumber;
        private double c_customerlongitude;
        private String c_id;
        private String c_name;
        private String c_waybillnumber;
        private String c_status;
        private String c_shippingstatus;
        private String c_driver_profits;

        public String getC_headportrait() {
            return c_headportrait;
        }

        public void setC_headportrait(String c_headportrait) {
            this.c_headportrait = c_headportrait;
        }

        public String getC_address() {
            return c_address;
        }

        public void setC_address(String c_address) {
            this.c_address = c_address;
        }

        public String getC_account() {
            return c_account;
        }

        public void setC_account(String c_account) {
            this.c_account = c_account;
        }

        public double getC_customerlatitude() {
            return c_customerlatitude;
        }

        public void setC_customerlatitude(double c_customerlatitude) {
            this.c_customerlatitude = c_customerlatitude;
        }

        public String getC_distance() {
            return c_distance;
        }

        public void setC_distance(String c_distance) {
            this.c_distance = c_distance;
        }

        public String getC_parcelnumber() {
            return c_parcelnumber;
        }

        public void setC_parcelnumber(String c_parcelnumber) {
            this.c_parcelnumber = c_parcelnumber;
        }

        public double getC_customerlongitude() {
            return c_customerlongitude;
        }

        public void setC_customerlongitude(double c_customerlongitude) {
            this.c_customerlongitude = c_customerlongitude;
        }

        public String getC_id() {
            return c_id;
        }

        public void setC_id(String c_id) {
            this.c_id = c_id;
        }

        public String getC_name() {
            return c_name;
        }

        public void setC_name(String c_name) {
            this.c_name = c_name;
        }

        public String getC_waybillnumber() {
            return c_waybillnumber;
        }

        public void setC_waybillnumber(String c_waybillnumber) {
            this.c_waybillnumber = c_waybillnumber;
        }

        public String getC_status() {
            return c_status;
        }

        public void setC_status(String c_status) {
            this.c_status = c_status;
        }

        public String getC_shippingstatus() {
            return c_shippingstatus;
        }

        public void setC_shippingstatus(String c_shippingstatus) {
            this.c_shippingstatus = c_shippingstatus;
        }

        public String getC_driver_profits() {
            return c_driver_profits;
        }

        public void setC_driver_profits(String c_driver_profits) {
            this.c_driver_profits = c_driver_profits;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.c_headportrait);
            dest.writeString(this.c_address);
            dest.writeString(this.c_account);
            dest.writeDouble(this.c_customerlatitude);
            dest.writeString(this.c_distance);
            dest.writeString(this.c_parcelnumber);
            dest.writeDouble(this.c_customerlongitude);
            dest.writeString(this.c_id);
            dest.writeString(this.c_name);
            dest.writeString(this.c_waybillnumber);
            dest.writeString(this.c_status);
            dest.writeString(this.c_shippingstatus);
            dest.writeString(this.c_driver_profits);
        }

        public ResultBean() {
        }

        protected ResultBean(Parcel in) {
            this.c_headportrait = in.readString();
            this.c_address = in.readString();
            this.c_account = in.readString();
            this.c_customerlatitude = in.readDouble();
            this.c_distance = in.readString();
            this.c_parcelnumber = in.readString();
            this.c_customerlongitude = in.readDouble();
            this.c_id = in.readString();
            this.c_name = in.readString();
            this.c_waybillnumber = in.readString();
            this.c_status = in.readString();
            this.c_shippingstatus = in.readString();
            this.c_driver_profits = in.readString();
        }

        public static final Parcelable.Creator<ResultBean> CREATOR = new Parcelable.Creator<ResultBean>() {
            @Override
            public ResultBean createFromParcel(Parcel source) {
                return new ResultBean(source);
            }

            @Override
            public ResultBean[] newArray(int size) {
                return new ResultBean[size];
            }
        };
    }
}
